home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / asciisinkp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  3KB  |  94 lines

  1. /*
  2. * $XConsortium: AsciiSinkP.h,v 1.2 89/10/04 13:56:34 kit Exp $
  3. */
  4.  
  5.  
  6. /***********************************************************
  7. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. /* 
  31.  * asciiSinkP.h - Private definitions for asciiSink object
  32.  * 
  33.  */
  34.  
  35. #ifndef _XawAsciiSinkP_h
  36. #define _XawAsciiSinkP_h
  37.  
  38. /***********************************************************************
  39.  *
  40.  * AsciiSink Object Private Data
  41.  *
  42.  ***********************************************************************/
  43.  
  44. #include <X11/Xaw/TextSinkP.h> 
  45. #include <X11/Xaw/AsciiSink.h> 
  46.  
  47. /************************************************************
  48.  *
  49.  * New fields for the AsciiSink object class record.
  50.  *
  51.  ************************************************************/
  52.  
  53. typedef struct _AsciiSinkClassPart {
  54.   int foo;
  55. } AsciiSinkClassPart;
  56.  
  57. /* Full class record declaration */
  58.  
  59. typedef struct _AsciiSinkClassRec {
  60.     ObjectClassPart     object_class;
  61.     TextSinkClassPart    text_sink_class;
  62.     AsciiSinkClassPart    ascii_sink_class;
  63. } AsciiSinkClassRec;
  64.  
  65. extern AsciiSinkClassRec asciiSinkClassRec;
  66.  
  67. /* New fields for the AsciiSink object record */
  68. typedef struct {
  69.     /* public resources */
  70.     Boolean echo;
  71.     Boolean display_nonprinting;
  72.  
  73.     /* private state */
  74.     GC normgc, invgc, xorgc;
  75.     Pixmap insertCursorOn;
  76.     XawTextInsertState laststate;
  77.     short cursor_x, cursor_y;    /* Cursor Location. */
  78. } AsciiSinkPart;
  79.  
  80. /****************************************************************
  81.  *
  82.  * Full instance record declaration
  83.  *
  84.  ****************************************************************/
  85.  
  86. typedef struct _AsciiSinkRec {
  87.     ObjectPart          object;
  88.     TextSinkPart    text_sink;
  89.     AsciiSinkPart    ascii_sink;
  90. } AsciiSinkRec;
  91.  
  92. #endif /* _XawAsciiSinkP_h */
  93.  
  94.